﻿ 
using System;
using System.Collections.Generic;
using System.Text;
using SHKF.B2C.MeiTuanPeiSong.Model.Request;
using SqlSugar;

namespace SHKF.B2C.MeiTuanPeiSong.Model.Entity.Order
{
    [SugarTable("OrderFormContent")]
    public class OrderContentEntity : CreateOrderByShopRequest
    {
        [SugarColumn(IsPrimaryKey  =true)]
        public long SN { get; set; }

        private string _mt_peisong_id;
        /// <summary>
        /// 美团配送内部订单id
        /// </summary>
        public string mt_peisong_id
        {
            get { return _mt_peisong_id; }
            set { _mt_peisong_id = value; }
        }

        private DateTime createTime = new DateTime(1900,1,1);
        public DateTime CreateTime
        {
            get { return createTime; }
            set { createTime = value; }
        }
         
        /// <summary>
        /// 配送员姓名
        /// </summary>
        public string courier_name { get; set; }

        /// <summary>
        /// 配送员电话
        /// </summary>
        public string courier_phone { get; set; }

        /// <summary>
        /// 取消原因id
        /// </summary>
        public int cancel_reason_id { get; set; }

        /// <summary>
        /// 取消原因详情
        /// </summary>
        public string cancel_reason { get; set; }

        /// <summary>
        /// 订单预计送达时间
        /// </summary>
        public string predict_delivery_time { get; set; }


        //以下为异常信息

        /// <summary>
        /// 异常ID，用来唯一标识一个订单异常信息。接入方用此字段用保证接口调用的幂等性。
        /// </summary>
        public long exception_id { get; set; }
         
        /// <summary>
        /// 订单异常代码
        /// </summary>
        public int exception_code { get; set; }

        /// <summary>
        /// 订单异常详细信息
        /// </summary>
        public string exception_descr { get; set; }

        /// <summary>
        /// 配送员上报订单异常的时间，格式为long
        /// </summary>
        public long exception_time { get; set; }
         

    }
}
